package pers.karl.design.spring.strategy.impl;

import pers.karl.design.spring.strategy.PriceStrategy;

import java.math.BigDecimal;

/**
 * 价格免费策略
 * @author karl
 */
public class PriceFreeStrategy implements PriceStrategy {

    public PriceFreeStrategy() {
        System.out.println("免费策略实例化");
    }

    @Override
    public BigDecimal calcPrice(BigDecimal price) {
        return BigDecimal.ZERO;
    }

}
